package com.itlong.cloud.commons.resource;

import com.itlong.cloud.commons.service.IUserMovePushMessageService;
import com.itlong.cloud.noncore.commons.IUserMovePushMessageServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      用户迁入推送业务接口
 * </desc>
 *
 * @createDate 2020/07/31
 */
@RestController
public class UserMovePushMessageServiceResource implements IUserMovePushMessageServiceClient{

    @Autowired
    IUserMovePushMessageService iUserMovePushMessageService;

    /**
     * <desc>
     *      推送数据
     * </desc>
     *
     * @param projectId
     * @author Jiaqi.X
     * @createDate 2020/07/31
     */
    @Override
    @RequestMapping(path = "/usermove/pushMessage")
    public void pushMessage(@RequestParam("projectId") String projectId,@RequestParam("token") String token){
        iUserMovePushMessageService.pushMessage(projectId,token);
    }
}
